<!DOCTYPE html>
<html lang="en">
<head>
    <title>{% block title %}votewell.info{% endblock %}</title>
    <link rel="stylesheet" href="/static/style.css" />
</head>
<body>
<div class="top_bar" width="100%">
	<div style="padding-right:30%"><a href="/"><h1>votewell.info</h1></a></div>
	{% if user.is_authenticated %}
		<div><p> Welcome {{user.username}}</p></div>
		<div><a href="/logout/">logout</a></div>
	{% else %}
		<div>
			<form action="/login/" method="post">
			{% csrf_token %}
			<div>
				<label for="username">Username</label><br/>
				<input type="text" size="25" name="username" >
				<input type="hidden" name="next" value="{{ request.path }}" />
			</div>
			<div>
				<label for="password" >Password</label><br/>
				<input type="password" size="25" name="password">
			</div>
			<div>
				<input type="submit" value="Login"  />
			</div>
			</form>
		</div>
		<div><a href="/register.html">register</a></div>
	{% endif %}
</div>

<div class="maincontent"/>
{% block content %}{% endblock %}
</div>

<!-- Quantcast Tag -->
<script type="text/javascript">
var _qevents = _qevents || [];

(function() {
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
elem.async = true;
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem, scpt);
})();

_qevents.push({
qacct:"p-fWmxLXVHpTpw1"
});
</script>

<noscript>
<div style="display:none;">
<img src="//pixel.quantserve.com/pixel/p-fWmxLXVHpTpw1.gif" border="0" height="1" width="1" alt="Quantcast"/>
</div>
</noscript>
<!-- End Quantcast tag -->

</body>
</html>